//
//  DnRollMenuTableView.h
//  DnRollTabbarMenu
//
//  Created by Ngoc on 27/11/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DnRollHorizontalMenuTableCell.h"

@protocol DnRollMenuTableViewDelegate <NSObject>
-(NSInteger) numberMenuOfTable:(id) sender;
-(UITableViewCell*) menuSection:(id)sender atIndex:(NSInteger) menuIndex;
-(NSInteger) indexOfMenu:(id) sender;
@end

@interface DnRollMenuTableView : UIView<UITableViewDelegate, UITableViewDataSource> {
    //NSArray *menuArray;
    //NSMutableArray *reusableCells;
    
    UITableView *internalTableView;
    //DnRollHorizontalMenuTableCell *currentHorizonMenu;
    NSMutableArray *menuDataSource;
    NSInteger distanceBetweenItems;
    
    //NSMutableArray *_reuableItemsMenu;
}
@property(nonatomic, retain) NSArray *menuArray;
@property(nonatomic,retain) NSMutableArray *reusableCells;
@property(nonatomic) NSInteger distanceBetweenItems;
@property(nonatomic, retain) id<DnRollMenuTableViewDelegate> dataSource;
-(id) initWithFrame:(CGRect)frame distanceBetweenItems:(NSInteger) distance;
//-(void) changeToMenuAtIndex:(NSInteger) menuIndex;
-(void) goToMenu:(NSInteger) nextMenuIndex fromMenu:(NSInteger) currentMenuIndex;
@end
